package com.person.jiaiplan.assembler;

import com.person.jiaiplan.pojo.dto.expenses.AccountMemberInfoResDTO;
import com.person.jiaiplan.pojo.entity.AccountMemberInfo;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

@Mapper
public interface AccountMemberAssembler {

    AccountMemberAssembler  INSTANCE = Mappers.getMapper(AccountMemberAssembler.class);

    @Mapping(target = "startTime", source = "startTime", dateFormat = "yyyy-MM-dd")
    @Mapping(target = "endTime", source = "endTime", dateFormat = "yyyy-MM-dd")
    AccountMemberInfoResDTO accountMemberinfoToResDTO(AccountMemberInfo accountMemberInfo);
}
